bbsApp.controller("topicCtrl", ["$rootScope", '$scope', '$http', '$location', '$state','lyfUtils','selectArrays','$stateParams', function($rootScope, $scope, $http, $location,$state,lyfUtils,selectArrays,$stateParams){
	//初始化
	$scope.init = function(){
		$scope.id = $stateParams.id;
		
		$http.post('topic/getTopicById.do', {id: $scope.id}).success(function (result) {
            $scope.data = result.data;
        });
	}	
	
}]);
